package day0212;

public class Test4 {
    public static void main(String[] args) {
        int a=4;
        int b=a;
        int n=5;

        int sum=a;
        for (int i = 1; i < n; i++) {
            a=a*10+b;
            sum=sum+a;
        }
        System.out.println(sum);
    }
}
